package com.d.ydfactory;

import com.d.ydfactory.domain.ApproveStartResult;
import org.springframework.stereotype.Service;

/**
 * 审批工厂类
 */
@Service
public interface YdApproveFactory {
    /**
     * 发起宜搭
     * @param bussId  业务id
     * @return
     */
    ApproveStartResult start(Integer bussId);

    /**
     *
     * @processType businessNo 对应的流程定义
     * @param businessNo 单号
     * @param status   状态
     * @param remark  描述
     * @param staffId 钉钉
     * @return
     */
    int updateStatus(Integer processType, String businessNo, String instanceId,Integer status, String remark, String staffId);
}
